Code and data files for:
"Some Inconvenient Truths About Climate Change Policy: The Distributional Impacts of Transportation Policies"Stephen P. Holland, Jonathan E. Hughes, Christopher R. Knittel and Nathan C. Parker

1.) Biofuel Supply Curves - Creates county-level and national biofuel supply curves from raw linear programming optimization model (Stata)

"create_county_supply_curves.do" - Creates county-level supply curves used in gain/loss calculations using input files: "results_baseline_links_cleaned.dta;" "run.dta;" "HECYields_clean.dta;" "Corn_Yields_clean.dta;" and "Plant_Level_Runs_070101.dta." The supply curves are saved as "county_supply_new_2.dta." 

"create_supply_curves.do" - Creates national supply curves and saves each as a separate .csv files "corn.csv," "forest.csv," etc. for policy simulation model.  This file also creates the supply curve figure.
 
2.) Policy Simulation - Simulates equilibrium outcomes under CAT, LCFS, RFS and biofuel subsidies using biofuel supply curves (Matlab) 

"National35.m" - Runs primary policy simulations and main robustness checks. Stores equilibrium outcomes in "RFS2SimulationALL_new.csv," "CSPSVectors_new.csv," and "PriceVectors_new.csv"

3.) County-Level Gains and Loses - Calculates county-level consumer and producer surplus changes under each policy (Stata)

"create_csps.do" - creates main county-level consumer surplus and producer surplus results used as input to Congressional District level analysis, saves output as "county_csps_new_2.dta"

"create_csps_robustness.do" - Creates county-level consumer and producer surplus for the different simulation robustness checks, saves output as "county_csps_XX_2.dta" files

4.) Analysis of WM vote - Analysis of voting on Waxman-Markey Bill using county-level gains and loss data (Stata)

"Create Datasets4.do" - Creates county-level per capita and Congressional district-level gain/loss and vote files for voting analysis

"Analysis5.do" - The main voting analysis and tables are created here

"Analysis Appendices.do" - Creates result for the various robustness checks presented in the appendices

"Senate Simulation 110726.do" - Simulation exercise for Senate voting on Waxman-Markey